package com.gemalto.Kryptik.MacroCamera;

import java.awt.event.*;
import javax.swing.*;

public class MCKeyListener implements KeyListener {

	public void keyPressed(KeyEvent e){
		if (e.isControlDown()){
			switch ((int)e.getKeyCode()){
				case KeyEvent.VK_C:
					System.out.println("COPY");
					e.consume();
					break;
				case KeyEvent.VK_V:
					System.out.println("PASTE in "+((JTextArea)e.getSource()).getDocument().getProperty("name"));
					e.consume();
					break;
				default:
					System.out.println("--"+KeyEvent.VK_C+"--"+e.getKeyCode());
			}
		}

	}

	public void keyReleased(KeyEvent e){
	}

	public void keyTyped(KeyEvent e){
	}
}